package com.umeox.watch.moto.apiclient.model;

import android.os.Parcel;
import android.os.Parcelable;

public class DeviceFriendAttrDTO implements Parcelable {

    public String friendId;
    public int customGroup;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.friendId);
        dest.writeInt(this.customGroup);
    }

    public DeviceFriendAttrDTO() {

    }

    protected DeviceFriendAttrDTO(Parcel in) {
        this.friendId = in.readString();
        this.customGroup = in.readInt();
    }

    public static final Creator<DeviceFriendAttrDTO> CREATOR = new Creator<DeviceFriendAttrDTO>() {
        public DeviceFriendAttrDTO createFromParcel(Parcel source) {
            return new DeviceFriendAttrDTO(source);
        }

        public DeviceFriendAttrDTO[] newArray(int size) {
            return new DeviceFriendAttrDTO[size];
        }
    };

    @Override
    public String toString() {
        return "DeviceFriendAttrDTO{" +
                "friendId='" + friendId + '\'' +
                ", customGroup=" + customGroup +
                '}';
    }
}
